<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
            <h3>数据表字典-{$table}</h3>
        </div>

        <div class="modal-body">
            <table class="table table-responsive table-hover">
                <thead class="navbar-inner">
                    <tr>
                        <th style='width:100px'>字段名</th>
                        <th style='width:100px'>字段类型</th>
                        <th style='width:60px'>默认值</th>
                        <th style='width:60px'>允许非空</th>
                        <th style='width:60px'>自动递增</th>
                        <th style='width:120px'>备注</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $fields as $key => $row}
                    <tr>
                        <td>{$row['name']}</td>
                        <td>{$row['type']}</td>
                        <td>{$row['default']}</td>
                        <td>{$row['notnull'] ? 'NO' : 'YES'}</td>
                        <td>{$row['autoinc'] ? '是' : ''}</td>
                        <td>{$row['comment']}</td>
                    </tr>
                    {/foreach}
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="6"></td>
                    </tr>
                </tfoot>
            </table>
        </div>

        <div class="modal-footer">
            <a href="#" class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</a>
        </div>
    </div>
</div>

<script>

</script>